package www.com.zhongge.stack;

/**
 * @ClassName Test
 * @Description TODO
 * @Author 李明忠
 * @Date 2025/7/24 9:54
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        myStack.push(4);

        System.out.println(myStack.pop());
        System.out.println(myStack.pop());
        System.out.println(myStack.peek());
        System.out.println(myStack.peek());
    }
}
